<link rel="stylesheet" href="../css/frame2.css?v=1.0.1">
<style>
    .wrap .u-wrap .list {
        font-size: 14px;
        color: #333333;
    }

    .wrap .u-wrap .list .name {
        color: #673AB7;
        font-size: 14px;
        margin-right: 5px;
    }

    .wrap .u-wrap .list .content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .wrap .u-wrap .list .footer {
        font-size: 12px;
        color: #757575;
        margin-top: 10px;
    }
</style>
<div class="wrap" id="view" v-cloak>
    <ul class="u-wrap">
        <li class="list" v-for="(m, index) in ffList" @click="_url({id:m.dy_id, url:'frame1/dy_detail', title:'详情'})">
            <div class="tx img-h">
                <img :src="imgurl+m.head" @load="imgCss(imgurl+m.head, $event)"
                    onerror="this.onerror=null;this.src='../image/touxiang.png'" alt="">
            </div>
            <div class="content">
                <div class="name-wrap" style="position: relative;">{{m.desc}}</div>
                <div class="flex-bt footer">
                    <span class="time">{{m.addtime}}</span>
                    <div class="look"><span>去看看</span> <i class="aui-iconfont aui-icon-right"></i></div>
                </div>
            </div>
        </li>
        <!-- <li class="list" v-for="(m, index) in ffList">
                <div class="tx img-h">
                    <img :src="imgurl+m.head" @load="imgCss(imgurl+m.head, $event)" onerror="this.onerror=null;this.src='../image/touxiang.png'" alt="">
                </div>
                <div class="content">
                    <div class="name-wrap" style="position: relative;"><span class="name">{{m.name}}</span>在广州事发布萨卡就发发了身份卡艰苦奋斗积分</div>
                    <div class="flex-bt footer">
                        <span class="time">{{m.addtime}}</span>
                        <div class="look"><span>去看看</span> <i class="aui-iconfont aui-icon-right"></i></div>
                    </div>
                </div>
            </li> -->
        <!-- <li class="list">
                <div class="tx img-h">
                    <img src="../image/test/01.jpg" alt="">
                </div>
                <div class="content">
                    <div class="name-wrap" style="position: relative;"><span class="name">张三</span>在广州事发布萨卡就发发了身份卡艰苦奋斗积分</div>
                    <div class="flex-bt footer">
                        <span class="time">2020-02-12</span>
                        <div class="look"><span>去看看</span> <i class="aui-iconfont aui-icon-right"></i></div>
                    </div>
                </div>
            </li> -->
    </ul>
    <div id="no_more" :class="{'null': ffList.length == 0}"></div>
</div>
<script>
    var view = new Vue({
        el: '#view',
        data: {
            imgurl: imgurl,
            ffList: [],
            ffInfo: {},
        },
        methods: {
            _url: function (param, url) {
                _url(param, url);
            },
            // 图片自适应
            imgCss: function (url, event) {
                var e = event.currentTarget;
                imgCss(url, function (w, h) {
                    if (w < h) {
                        $(e).parent().addClass('img-w').removeClass('img-h');
                    }
                })
            },
        }
    })

    var param = {
        user_id: myuserid,
    }
    judgeLogin()
    _lists('home/User/sysDymanic', 0, 1, param);

    _scrollToBottom(function () {
        if (heigutgao == 1) {
            pagenum++;
            _lists('home/User/sysDymanic', pagenum, '', param);
        }
    })
</script>